import { InitsParam, initBehaviors, createBehaviorInitsParam } from "./";
const lazyLoadings = new Array<() => Promise<{ module: any; key: string; className: string }>>();
/*--filling
lazyLoadings.push(async () => {
  return {
    module: await import("${folderPath}"),
    key: "${folderName}",
    className: "${picks[0]}"
  };
});
filling--*/
export const load = async () => {
  const classes = new Array<InitsParam>();
  for (let lazyLoading of lazyLoadings) {
    const result = await lazyLoading();
    classes.push(createBehaviorInitsParam(result.module, result.key, result.className));
  }
  await initBehaviors(classes);
};
